package com.thinkit.bigdata.web.service.impl.log;

import com.thinkit.bigdata.core.feature.orm.mybatis.Page;
import com.thinkit.bigdata.web.dao.sys.SysOperateLogMapper;
import com.thinkit.bigdata.web.model.sys.SysOperateLog;
import com.thinkit.bigdata.web.model.sys.SysOperateLogExample;
import com.thinkit.bigdata.web.service.log.SystemOperateLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by joqk12345 on 9/18/16.
 * www.github.com/joqk12345
 */
@Service
public class SystemOperateLogServiceImpl implements SystemOperateLogService {

    @Resource
    private SysOperateLogMapper sysOperateLogMapper;

    @Override
    public List<SysOperateLog> selectByExampleAndPage(Page<SysOperateLog> page, SysOperateLogExample sysOperateLogExample) {
        return sysOperateLogMapper.selectByExample(page, sysOperateLogExample);
    }

    @Override
    public int insertSelective(SysOperateLog record) {
        return sysOperateLogMapper.insertSelective(record);
    }

    @Override
    public Integer insertLog(SysOperateLog record) {
        return sysOperateLogMapper.insertLog(record);
    }
}
